package entity;

import java.time.LocalDateTime;

public class Order {
    int itemid;
    int userid;
    int id;
    double price;
    int number;
    LocalDateTime order_time;
    int check_pay;

    public Order() {
    }

    public Order(int itemid, int userid, int id, double price, int number, LocalDateTime order_time, int check_pay) {
        this.itemid = itemid;
        this.userid = userid;
        this.id = id;
        this.price = price;
        this.number = number;
        this.order_time = order_time;
        this.check_pay = check_pay;
    }

    /**
     * 获取
     * @return itemid
     */
    public int getItemid() {
        return itemid;
    }

    /**
     * 设置
     * @param itemid
     */
    public void setItemid(int itemid) {
        this.itemid = itemid;
    }

    /**
     * 获取
     * @return userid
     */
    public int getUserid() {
        return userid;
    }

    /**
     * 设置
     * @param userid
     */
    public void setUserid(int userid) {
        this.userid = userid;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return price
     */
    public double getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(double price) {
        this.price = price;
    }

    /**
     * 获取
     * @return number
     */
    public int getNumber() {
        return number;
    }

    /**
     * 设置
     * @param number
     */
    public void setNumber(int number) {
        this.number = number;
    }

    /**
     * 获取
     * @return order_time
     */
    public LocalDateTime getOrder_time() {
        return order_time;
    }

    /**
     * 设置
     * @param order_time
     */
    public void setOrder_time(LocalDateTime order_time) {
        this.order_time = order_time;
    }

    /**
     * 获取
     * @return check_pay
     */
    public int getCheck_pay() {
        return check_pay;
    }

    /**
     * 设置
     * @param check_pay
     */
    public void setCheck_pay(int check_pay) {
        this.check_pay = check_pay;
    }

    public String toString() {
        return "Order{itemid = " + itemid + ", userid = " + userid + ", id = " + id + ", price = " + price + ", number = " + number + ", order_time = " + order_time + ", check_pay = " + check_pay + "}";
    }
}
